<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>主轴方向</title>
    <style>
      .container {
        display: flex;

        /* 
          主轴方向
          row               默认值,水平从左向右
          row-reverse       水平从右往左
          column            垂直从上到下
          column-reverse    垂直从下到上

          注意: 侧轴是垂直于主轴的轴,所以无论主轴如何变化,侧轴一定和主轴呈90度
        */
        flex-direction: column-reverse;

        width: 800px;
        height: 400px;
        background-color: #ccc;
      }

      .item1 {
        width: 200px;
        height: 200px;
        background-color: palegreen;
      }

      .item2 {
        width: 200px;
        height: 200px;
        background-color: paleturquoise;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="item1">11111111111</div>
      <div class="item2">22222222222</div>
    </div>
  </body>
</html>
